Hi @Tran, Samuel Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.
I do not see a way to rest the Minimum API version once it is set from the portal. However, we can use the Api Management Service - Create Or Update API end point under API Management service to change this configuration. Kindly note that this is long running operation. The page also provides the sample implementation of the call in different programming languages. Please find the below sample Python implementation I have tested for reference
def main():
client = ApiManagementClient(
credential=DefaultAzureCredential(),
subscription_id="<replace_with_subscriptionID>",
)
response = client.api_management_service.begin_create_or_update(
resource_group_name="<replace_with_group_name>",
service_name="<replace_with_APIM_instance_name>",
parameters={
"location": "East US",
"properties": {
"publisherEmail": "emailID",
"publisherName": "Microsoft",
"virtualNetworkType": "None",
},
"sku": {"capacity": 1, "name": "Premium"},
"tags": {'AKS': '', 'tagName': ''}
},
).result()
print(response)
You can make a get call to end point Api Management Service - Get to see what properties are defined on your instance and please make sure that "apiVersionConstraint": {"minApiVersion": "2021-08-01"}
is removed from your parameters before you make an update call.
The update will take a few minutes to make the change.
Once the update is done I see that the API version setting is reverted back on my instance. Please find the below image for reference.
As a side note, please refer to the article API version retirements (June 2024) which provides information on the tools, scripts and programs that need to be updated to avoid any impact due to this APi version change.
Hope this helps! If you have any additional questions or need further assistance, please do not hesitate to reach out to us through the comments below.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.